﻿@model shop.GioiThieu

@{
    ViewBag.Title = "Create";
}





<div id="content">
    <div id="content-header">
        <div id="breadcrumb">
            <a href="index.html" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
            <a href="#" class="tip-bottom">Form elements</a>
            <a href="#" class="current">Common elements</a>
        </div>      
    </div>
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title">
                        <span class="icon">
                            <i class="icon-align-justify"></i>
                        </span>
                        <h5>Thêm giới thiệu</h5>
                    </div>
                    <div class="widget-content nopadding">
                        @using (Html.BeginForm("create", "gioithieu", FormMethod.Post, new { enctype = "multipart/form-data", @id = "formsanpham", @class = "form-horizontal" }))
                        {
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <div class="control-group">
                                <label class="control-label">Tiêu đề bài giới thiệu :</label>
                                <div class="controls">
                                    <input type="text" class="required span3" name="TieuDe" placeholder="Nhập tiêu đề bài viết" />
                                </div>
                            </div>
                                                      
                            <div class="control-group">
                                <label class="control-label">Nội dung bài viết</label>
                                <div class="controls">
                                    <textarea id="NoiDung" name="NoiDung" class="required span20" placeholder="textarea (span20)"></textarea>
                                </div>
                            </div>

                            <div class="form-actions">
                                <button id="them" type="submit" class="btn btn-success">Thêm</button>
                            </div>
                        }

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="row-fluid">
    <div id="footer" class="span12"> 2012 &copy; Marutii Admin. Brought to you by <a href="http://themedesigner.in">Themedesigner.in</a> </div>
</div>
<script src="~/Content/themes/maruti/js/jquery.min.js"></script>
<script src="~/Content/themes/maruti/js/jquery.ui.custom.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap.min.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap-colorpicker.js"></script>
<script src="~/Content/themes/maruti/js/bootstrap-datepicker.js"></script>
<script src="~/Content/themes/maruti/js/jquery.uniform.js"></script>
<script src="~/Content/themes/maruti/js/select2.min.js"></script>
<script src="~/Content/themes/maruti/js/maruti.js"></script>
<script src="~/Content/themes/maruti/js/maruti.form_common.js"></script>
<script src="~/Plugin/ckeditor/ckeditor.js"></script>
<script src="~/Content/js/jquery.validate.js"></script>
<script src="~/Content/js/localization/messages_vi.js"></script>

<script>
    CKEDITOR.replace("NoiDung", {
        toolbar: [
            { name: 'document', items: ['-', 'NewPage', 'Preview', '-', 'Templates'] },	// Defines toolbar group with name (used to create voice label) and items in 3 subgroups.
            ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo'],			// Defines toolbar group without name.
            '/',																					// Line break - next group will be placed in new line.
            { name: 'basicstyles', items: ['Bold', 'Italic'] }
        ]
    });
</script>